<?php
namespace app\controller\api;
use app\FrontendController;
use app\model\frontend\CategoryModel;
class Category extends FrontendController{


    public function tree(){


        $tree = CategoryModel::tree();

        echo json_encode( $tree );
    }


}
